<template>
  <div>
    <header>
      <slot name="header" :user="user">
        {{ user.name }}
      </slot>
    </header>
    <main>
      <slot></slot>
    </main>
    <footer>
      <slot name="footer"></slot>      
    </footer>
  </div>
</template>

<script>
export default {
  data () {
    return {
      child: 'this is child',
      user: {
        name: "zhangsan"
      }
    }
  }
}
</script>

<style lang="stylus" scoped>

</style>
